<?php if (!defined('THINK_PATH')) exit(); /*a:3:{s:88:"/www/wwwroot/api.bjxlxd.com/public/../application/admin/view/selected/selected_list.html";i:1597987801;s:67:"/www/wwwroot/api.bjxlxd.com/application/admin/view/public/menu.html";i:1598405662;s:69:"/www/wwwroot/api.bjxlxd.com/application/admin/view/public/header.html";i:1597137338;}*/ ?>
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <title>后台管理</title>

    <!-- ================= Favicon ================== -->
    <!-- Standard -->
    <link rel="shortcut icon" href="http://placehold.it/64.png/000/fff">
    <!-- Retina iPad Touch Icon-->
    <link rel="apple-touch-icon" sizes="144x144" href="http://placehold.it/144.png/000/fff">
    <!-- Retina iPhone Touch Icon-->
    <link rel="apple-touch-icon" sizes="114x114" href="http://placehold.it/114.png/000/fff">
    <!-- Standard iPad Touch Icon-->
    <link rel="apple-touch-icon" sizes="72x72" href="http://placehold.it/72.png/000/fff">
    <!-- Standard iPhone Touch Icon-->
    <link rel="apple-touch-icon" sizes="57x57" href="http://placehold.it/57.png/000/fff">

    <!-- Styles -->
    <link href="/static/admin/other/fontAwesome/css/fontawesome-all.min.css" rel="stylesheet">
    <link href="/static/admin/css/lib/themify-icons.css" rel="stylesheet">
    <link href="/static/admin/css/lib/mmc-chat.css" rel="stylesheet" />
    <link href="/static/admin/css/lib/sidebar.css" rel="stylesheet">
    <link href="/static/admin/css/lib/bootstrap.min.css" rel="stylesheet">
    <link href="/static/admin/css/lib/nixon.css" rel="stylesheet">
    <link href="/static/admin/css/style.css" rel="stylesheet">
</head>

<body>
<div class="sidebar sidebar-hide-to-small sidebar-shrink sidebar-gestures">
    <div class="nano">
        <div class="nano-content">
            <ul>
                <li><a href="/admin/Index"><i class="ti-home"></i> 数据概览</a></li>

                <?php if(in_array((\think\Cookie::get('admin_id')), explode(',',"1"))): ?>
                <li>
                    <a class="sidebar-sub-toggle"><i class="ti-layout-grid4-alt"></i> 后台栏目管理 <span class="sidebar-collapse-icon ti-angle-down"></span></a>
                    <ul>
                        <li><a href="/admin/Menu">栏目列表</a></li>
                    </ul>
                </li>
                <li><a href="/admin/AdminUser"><i class="ti-github"></i> 后台管理员</a></li>
                <?php endif; if(is_array($topMenu) || $topMenu instanceof \think\Collection || $topMenu instanceof \think\Paginator): $i = 0; $__LIST__ = $topMenu;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;if(!empty($vo['secondMenu'])): ?>
                <li>
                    <a class="sidebar-sub-toggle"><i class="<?php echo $vo['icon']; ?>"></i> <?php echo $vo['name']; ?> <span class="sidebar-collapse-icon ti-angle-down"></span></a>
                    <ul>
                        <?php if(is_array($vo['secondMenu']) || $vo['secondMenu'] instanceof \think\Collection || $vo['secondMenu'] instanceof \think\Paginator): $i = 0; $__LIST__ = $vo['secondMenu'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vi): $mod = ($i % 2 );++$i;?>
                        <li><a href="/admin/<?php echo $vi['class']; ?>"><?php echo $vi['name']; ?></a></li>
                        <?php endforeach; endif; else: echo "" ;endif; ?>
                    </ul>
                </li>
                <?php else: ?>
                <li><a href=""><i class="<?php echo $vo['icon']; ?>"></i> <?php echo $vo['name']; ?></a></li>
                <?php endif; endforeach; endif; else: echo "" ;endif; ?>
                <!--<li><a href="/admin/loginOut"><i class="ti-close"></i> Logout</a></li>-->
            </ul>
        </div>
    </div>
</div>
<!-- /# sidebar -->

<div class="header">
    <div class="pull-left">
        <div class="logo">
            <a href="index.html"></a>
        </div>
        <div class="hamburger sidebar-toggle">
            <span class="ti-menu"></span>
        </div>
    </div>
    <div class="pull-right p-r-15">
        <ul>
            <li class="header-icon dib">
                <i class="ti-bell"></i>
                <div class="note-count">0</div>
                <div class="drop-down">
                    <div class="dropdown-content-body">
                        <ul>
                            <li>
                                <a href="/admin/demandList">
                                    <div class="notification-content">
                                        <div class="notification-heading">&nbsp;</div>
                                        <div class="notification-heading">有新的活动需求单</div>
                                        <div class="notification-heading">&nbsp;</div>
                                    </div>
                                </a>
                            </li>
                        </ul>
                    </div>
                </div>
            </li>

            <li class="header-icon dib">
                <img class="avatar-img" src="/static/admin/img/avatar/1.jpg" alt="" /> <span class="user-avatar"><?php echo \think\Cookie::get('admin_name'); ?> </span>
            </li>
        </ul>
    </div>
</div>


<script>
    window.onload = function(){
        getNum();
    }
    var ref = "";
    ref = setInterval(function(){
        getNum();
    },10000);
    function getNum(){
        $.ajax({
            type: 'POST',
            url: '/admin/Demand/getNum',
            data:{
            },
            dataType: 'json',
            success: function(data){
                $(".note-count").html(data.num);
            },
        });
    }
</script>
<div class="content-wrap">
    <div class="main">
        <div class="container-fluid">
            <div class="row">
                <div class="col-lg-8 p-0">
                    <div class="page-header">
                        <div class="page-title">

                        </div>
                    </div>
                </div><!-- /# column -->
                <div class="col-lg-4 p-0">
                    <div class="page-header">
                        <div class="page-title">
                            <ol class="breadcrumb text-right">
                                <li><a>精选场地</a></li>
                                <li class="active">列表</li>
                            </ol>
                        </div>
                    </div>
                </div><!-- /# column -->
            </div><!-- /# row -->
            <div class="main-content">
                <div class="row">
                    <div class="col-lg-6">
                        <a href="/admin/addSelected"><button type="button" class="btn btn-primary btn-flat btn-addon m-b-10 m-l-5"><i class="ti-plus"></i>添加酒店</button></a>
                        <div class="card alert">
                            <div class="card-header">
                                <h4>场地列表</h4>
                            </div>
                            <div class="card-body">
                                <table class="table table-responsive table-bordered">
                                    <thead>
                                    <tr>
                                        <th>ID</th>
                                        <th>名称</th>
                                        <th>封面图</th>
                                        <th>排序（倒序）</th>
                                        <th>首页排序（倒序）</th>
                                        <th>隐显</th>
                                        <th>创建时间</th>
                                        <th>操作</th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    <?php if(is_array($rs) || $rs instanceof \think\Collection || $rs instanceof \think\Paginator): $i = 0; $__LIST__ = $rs;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                                    <tr>
                                        <td scope="row"><?php echo $vo['id']; ?></td>
                                        <td><?php echo $vo['title']; ?></td>
                                        <td><img src="<?php echo $vo['image']; ?>" alt="" style="width: 200px"></td>
                                        <td><?php echo $vo['list_sort']; ?></td>
                                        <td><?php echo $vo['index_sort']; ?></td>
                                        <?php switch($vo['status']): case "1": ?><td ><button class="btn btn-success">显示</button></td><?php break; case "0": ?><td ><button class="btn btn-danger">隐藏</button></td><?php break; default: ?>default
                                        <?php endswitch; ?>
                                        <td><?php echo date("Y-m-d H:i:s",$vo['time'] ); ?></td>
                                        <td>
                                            <a href="/admin/selectedInfo?id=<?php echo $vo['id']; ?>">
                                                <button type="button" class="btn btn-info m-b-10 m-l-5">详情</button>
                                            </a>
                                        </td>
                                    </tr>
                                    <?php endforeach; endif; else: echo "" ;endif; ?>
                                    </tbody>
                                </table>
                                <?php echo $rs->render(); ?>
                            </div>
                        </div>
                    </div><!-- /# column -->
                </div><!-- /# row -->
            </div>
        </div><!-- /# container-fluid -->
    </div><!-- /# main -->
</div><!-- /# content wrap -->

<script src="/static/admin/js/lib/jquery.min.js"></script><!-- jquery vendor -->
<script src="/static/admin/js/lib/jquery.nanoscroller.min.js"></script><!-- nano scroller -->
<script src="/static/admin/js/lib/sidebar.js"></script><!-- sidebar -->
<script src="/static/admin/js/lib/bootstrap.min.js"></script><!-- bootstrap -->
<script src="/static/admin/js/lib/mmc-common.js"></script>
<script src="/static/admin/js/lib/mmc-chat.js"></script>
<script src="/static/admin/js/scripts.js"></script>
</body>

</html>